{include file="public_head"}
{include file="public_menu"}
<script>
    $(function () {
        $(".main_record .tablist li").click(
                function(){
                    var a=$(".main_record .tablist li").index(this);
                    $(this).addClass("cur");
                    $(this).addClass("active").siblings().removeClass("active");
                    $(".main_record .tabcon>div").eq(a).css({display:"block"}).siblings().css({display:"none"});;
                }
        )

    })
</script>
    <div class="content_center">
        <div class="main_center">
            {include file="public_information_menu"}
            <div class="main_right right">
                <div class="main_right_title">我的收藏</div>
                <div class="main_record">
                    <ul class="tablist">
                        <li class="active" style="font-size:16px;">商品</li>
                        <li style="font-size:16px;">店铺</li>
                    </ul>
                    <div class="tabcon">
                        <div class="list_record active">

                            <ul class="list-group">
                                {volist name="good_lists" id="vo"}
                                <li class="list_det" onclick="jump_goods({$vo.shopGoods.id});">
                                    <img src="/{$vo.shopGoods.thumb_img}" class="pic">
                                    <div class="title">{$vo['shopGoods']['title']}</div>
                                    <div class="price">￥{$vo['shopGoods']['price']}</div>
                                    <div class="buy"><a href="#">立即购买</a></div>
                                    <ul>
                                        <li><img src="__STATIC__/img/icon53.png">{$vo['shopGoods']['collect']}人收藏</li>
                                    </ul>
                                </li>
                                {/volist}
                            </ul>

                        </div>
                        <div class="list_record">
                            {empty name="shop_lists"}
                            没有收藏的店铺
                            {else/}
                            <ul class="list-group">
                                {volist name="shop_lists" id="vv"}
                                <li class="list_det">
                                    <img src="/{$vv['Shop']['logo']}" class="pic" style="width: 152px;height: 152px;" onerror="this.src='__STATIC__/img/232.png'">
                                    <div class="title">{$vv['Shop']['title']}</div>
                                    <!--<div class="price">￥109.00</div>-->
                                    <div class="buy"><a href="{:url('Shop/index',['shop_id'=>$vv.shop.member_id])}" target="_blank">进入店铺</a></div>
                                    <ul>
                                        <li><img src="__STATIC__/img/icon53.png">{$vv['Shop']['collect_number']}人收藏</li>
                                    </ul>
                                </li>
                                {/volist}
                            </ul>
                            {/empty}
                        </div>
                    </div>
                </div>



            </div>
        </div>

    </div>
<script>
    // 跳转商品
    function jump_goods(good_id){
        var url = "{:url('ShopGoods/index')}?good_id="+good_id;
        window.open(url);
    }

</script>
{include file="public_foot"}